#!/bin/bash

sum () {
	result=$[$1 + $2];
	return $result;
}

read -p "请输入第一个数值：" n1
read -p "请输入第二个数值：" n2

sum $n1 $n2
echo $?

